#include <iostream>
#include <unistd.h>
#include <cstdio>

 int main(int argc,char* argv[],char* env[])
 {
     std::cout<<"hello c++,pid is "<<getpid()<<std::endl;

     for(int i=0;i<argc;i++)
     {
         printf("argv[%d] -> %s\n",i,argv[i]);
     }

     std::cout<<std::endl;

     for(int i=0;env[i];i++)
     {
         printf("env[%d] -> %s\n",i,env[i]);
     }

     return 0;                                                                                                                                                                                                 
 }

